//
//  PaintingStyleItemCell.swift
//  NDAi
//
//  Created by 丸子 on 2024/6/4.
//

import UIKit

class PaintingStyleItemCell: UICollectionViewCell {
    lazy var coverIV: UIImageView = {
       let view = UIImageView()
        view.image = UIImage(named: "ai_launch_logo")
        return view
    }()
    
    lazy var titleLb: UILabel = {
       let label = UILabel()
        label.backgroundColor = UIColor(hexString: "#222225", transparency: 0.9)
        label.textColor = .white
        label.font = UIFont.pingFangSCRegular(ofSize: 11)
        label.textAlignment = .center
        label.text = "唯美"
       return label
    }()
 
    override init(frame: CGRect) {
        super.init(frame: frame)
        backgroundColor = .clear
        contentView.allRound(4)
        contentView.addSubviews([coverIV, titleLb])
        coverIV.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
        
        titleLb.snp.makeConstraints { make in
            make.bottom.leading.trailing.equalToSuperview()
            make.height.equalTo(20)
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
}

